package vcp.models;

import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
import java.util.Observable;

import vcp.common.AbstractModel;
import client.Message;
import control.SimpleClient;
import db.parking.beans.Orders;

/**
 * Orders Temporary Model
 *
 */
public class OrdersTemporaryModel  extends AbstractModel{
	
	/**
	 * create Temporary Order
	 */
	public void createTemporaryOrder(Orders bean) {
		
		client = SimpleClient.getInstance();
		client.addPropertyChangeListener(this);
		
		Message msg = new Message(bean,"AddTemporaryOrder");
		 try {
				client.sendToServer(msg);				
		 }
		 catch (Exception ex)
		    {
			 System.out.println(ex.toString()+" OrderControl->InsertTemporary");
		    }
				
	}
	
}
